[USER (data scientist)]: That's perfect! Now, can we create some pie charts to visualize these approval rates? Please generate and display a set of pie charts illustrating the loan approval rates for three different customer groups in the 'credit_customers' dataset: middle-aged customers (40-59 years), customers with stable employment, and customers with good or excellent credit history.
My template of code snippet is:

---BEGIN CODE TEMPLATE---

import pandas as pd 
import matplotlib.pyplot as plt
 
# Load the dataset 
credit_customers = pd.read_csv("credit_customers.csv") 
 
# Plot pie charts 
fig, axes = plt.subplots(1, 3, figsize=(18, 6)) 
 
# YOUR SOLUTION BEGIN:
<code1>
[COMPLETE YOUR CODE] 
</code1>
# YOUR SOLUTION END

plt.tight_layout() 
plt.savefig('pred_result/pieplot.png') 
plt.show()

---END CODE TEMPLATE---

[YOU (AI assistant)]: Absolutely! Let's create pie charts for the loan approval rates of each customer segment:
'''
import pandas as pd 
import matplotlib.pyplot as plt
 
# Load the dataset 
credit_customers = pd.read_csv("credit_customers.csv") 
 
# Plot pie charts 
fig, axes = plt.subplots(1, 3, figsize=(18, 6)) 
 
# YOUR SOLUTION BEGIN:
